package com.lonwin.inspectionmanagement.mvp.ui.adapter;

import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.lonwin.inspectionmanagement.R;
import com.lonwin.inspectionmanagement.mvp.model.entity.bean.SortOutBean;

import java.util.List;
//
//public class SortOutRecordItemAdapter extends BaseQuickAdapter<SortOutBean.DataBean.GroupDigestedXcjlDtoBean.RecordsBean,BaseViewHolder> {
//    public SortOutRecordItemAdapter(@Nullable List<SortOutBean.DataBean.GroupDigestedXcjlDtoBean.RecordsBean> data) {
//        super(R.layout.sortout_record_item_item,data);
//    }
//
//    @Override
//    protected void convert(BaseViewHolder helper, SortOutBean.DataBean.GroupDigestedXcjlDtoBean.RecordsBean item) {
//         helper.setText(R.id.sortout_record_item_title,item.getXcgcjl().getTitle())
//                 .setText(R.id.sortout_record_item_jlwts,"记录问题数："+item.getXcgcjl().getQuestcount()+"个")
//                 .setText(R.id.sortout_record_item_jlgjs,"记录轨迹数："+item.getXcgcjl().getPathcount()+"条");
//       if (item.getQuestTempDtos()!=null&&!item.getQuestTempDtos().isEmpty())
//       {
//           RecyclerView recyclerView1=helper.<RecyclerView>getView(R.id.sortout_record_item_RecyclerView1);
//           recyclerView1.setLayoutManager(new LinearLayoutManager(mContext));
//           SortOutRecordItemItem1Adapter adapter1=new SortOutRecordItemItem1Adapter(item.getQuestTempDtos());
//           adapter1.openLoadAnimation(BaseQuickAdapter.SLIDEIN_RIGHT);
//           recyclerView1.setAdapter(adapter1);
//       }
//
//
//        if (item.getXcpathTemps()!=null&&!item.getXcpathTemps().isEmpty())
//        {
//            RecyclerView recyclerView2=helper.<RecyclerView>getView(R.id.sortout_record_item_RecyclerView2);
//            recyclerView2.setLayoutManager(new LinearLayoutManager(mContext));
//            SortOutRecordItemItem2Adapter adapter2=new SortOutRecordItemItem2Adapter(item.getXcpathTemps());
//            adapter2.openLoadAnimation(BaseQuickAdapter.SLIDEIN_RIGHT);
//            recyclerView2.setAdapter(adapter2);
//        }
//
//    }
//}
